Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 2 - Movie Controller Components / Movie Controller Components Reference
Movie Controller Functions / Editing Movies


MCGetMenuString

If your application has a non-standard Edit menu, you can use the MCGetMenuString function together with the MCGetControllerInfo function to assign names correctly to the items in your application's Edit menu.

pascal ComponentResult MCGetMenuString (MovieController mc, 
                                       long modifiers, 
                                       short item, 
                                       Str255 aString);
mc
Specifies the movie controller for this operation. You obtain this identifier from the Component Manager's OpenComponent or OpenDefaultComponent function, or from the NewMovieController function.
modifiers
Indicates the current modifiers from the mouse-down or key-down event to which you are responding.
item
Contains one of the appropriate movie controller Edit menu constants returned in the aString parameter.
aString
Contains (on return) an appropriate string to set the menu item text. The following flags are available:
mcMenuUndo
Contains the string to set the menu item text to the Undo command.
mcMenuCut
Contains the string to set the menu item text to the Cut command.
mcMenuCopy
Contains the string to set the menu item text to the Copy command.
mcMenuPaste
Contains the string to set the menu item text to the Paste command.
mcMenuClear
Contains the string to set the menu item text to the Clear command.
DESCRIPTION
The MCGetMenuString function is used by the MCSetUpEditMenu function, which is described in the previous section.

SEE ALSO
To highlight menu items, use the MCGetControllerInfo function, which is described on page 2-48, to determine which items should be enabled.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help